package main

import (
	"YingShop/router"
	shopsession "YingShop/shopSession"

	"github.com/gin-gonic/gin"
)

func main() {
	route := gin.Default()
	route.Use(shopsession.ShopSession)
	router.LoadUserRoute(route)
	router.LoadCategoryRoute(route)
	router.LoginRoute(route)
	router.ShopProductRouter(route)
	router.ShopOrderRouter(route)
	//启动HTTP服务，默认8080端口
	route.Run()

}
